package Practice.String;

public class SubString {
    public static void main(String[] args) {
        String s = "boy next door,as we can";
        int start = s.indexOf("d")-1;
        int end = s.indexOf(",");
        String s1 = s.substring(start,end);
        System.out.println(s1);




    }
}
